﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for RsaCarMoreDetail
/// </summary>
/// 
namespace CE.CarInsurance
{
    public class RsaCarMoreDetail
    {
        private Int64 _cecarmoredetailid;
        private Int64 _cecarid;
        private Int64 _providercompanyid;
        private string _salutation;
        private string _name;
        private string _nricno;
        private string _nationality;
        private string _postalcode;
        private string _unitno;
        private string _homeno;
        private string _address;
        private string _mobileno;
        private string _homehoneno;
        private string _officephoneno;
        private string _faxno;
        private Int32 _driveexpyear;
        private Int32 _driveexpmonth;
        private string _drivinglicenceno;
        private string _drivingclass;
        private Int32 _yearobtained;
        private bool _isnewvehicle;
        private string _vechicleno;
        private string _engineno;
        private string _chassisno;
        private string _vehicletransmission;
        private string _vehiclepropellant;
        private float _vehiclesuminsured;
        private float _claimodamount;
        private float _claimtppdamount;
        private bool _ispolicyrdcopted;
        private bool _hashirepurchase;
        private string _hpcompanyname;
        private bool _hasdrivewestmalaysia;
        private string _howoften;
        private bool _aircon;
        private bool _radio;
        private bool _sportsrims;
        private bool _sunroof;
        private bool _moonroof;
        private string _otheraccessories;
        private bool _hasVechiclemodified;
        private string _vechiclemodifyreason;
        private bool _hascoe;
        private bool _carrentalexten;
        private bool _ncdprotectorexten;
        private bool _dealerworkshopexten;
        private bool _sunroofexten;
        private float _sunroofamount;
        private bool _moonroofexten;
        private float _moonroofamount;
        private string _otherextension;
        private bool _socialuse;
        private bool _hasphysicalimpairmty;
        private string _physicalImpairmtyreason;
        private bool _hasaccidentinvolved;
        private string _accidentinvolvedreason;
        private bool _hastrafficconvicted;
        private string _trafficconvictedreason;
        private bool _hasinsuranceterminated;
        private string _Insuranceterminatedreason;
        private bool _hasdemeritpoints;
        private bool _haspreinsurer;
        private string _preinsurername;
        private string _preinsvechicleno;
        private Int32 _preinsncd;
        private string _preinsPolicyno;
        private DateTime _preinsexpirydate;
        private string _pamenttype;
        private string _nameofthecard;
        private string _issuingbankname;
        private string _creditcardno;
        private string _cardexpirymonth;
        private string _cardexpiryyear;
        private string _cardtype;
        private string _quoterefno;

        //common field name
        private Int64 _refceuserid;
        private string _rowguid;
        private Int64 _vieweddetailid;
        private bool _status;
        private Int64 _carresultid;
        private DateTime _createddate;
        private DateTime _modifieddate;

        public RsaCarMoreDetail()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }
        
        public Int64 CECarMoreDetailId
        {
            get { return _cecarmoredetailid; }
            set { _cecarmoredetailid = value; }
        }

        public Int64 CECarId
        {
            get { return _cecarid; }
            set { _cecarid = value; }
        }

        public Int64 ProviderCompanyId
        {
            get { return _providercompanyid; }
            set { _providercompanyid = value; }
        }

        public string Salutation
        {
            get { return _salutation; }
            set { _salutation = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        
        public string NRICNo
        {
            get { return _nricno; }
            set { _nricno = value; }
        }

        public string Nationality
        {
            get { return _nationality; }
            set { _nationality = value; }
        }

        public string PostalCode
        {
            get { return _postalcode; }
            set { _postalcode = value; }
        }

        public string UnitNo
        {
            get { return _unitno; }
            set { _unitno = value; }
        }

        public string HomeNo
        {
            get { return _homeno; }
            set { _homeno = value; }
        }

        public string Address
        {
            get { return _address; }
            set { _address = value; }
        }
        
        public string MobileNo
        {
            get { return _mobileno; }
            set { _mobileno = value; }
        }

        public string HomePhoneNo
        {
            get { return _homehoneno; }
            set { _homehoneno = value; }
        }

        public string OfficePhoneNo
        {
            get { return _officephoneno; }
            set { _officephoneno = value; }
        }

        public string FaxNo
        {
            get { return _faxno; }
            set { _faxno = value; }
        }

        public Int32 DriveExpYear
        {
            get { return _driveexpyear; }
            set { _driveexpyear = value; }
        }

        public Int32 DriveExpMonth
        {
            get { return _driveexpmonth; }
            set { _driveexpmonth = value; }
        }

        public string DrivingLicenceNo
        {
            get { return _drivinglicenceno; }
            set { _drivinglicenceno = value; }
        }

        public string DrivingClass
        {
            get { return _drivingclass; }
            set { _drivingclass = value; }
        }

        public Int32 YearObtained
        {
            get { return _yearobtained; }
            set { _yearobtained = value; }
        }

        public bool IsNewVehicle
        {
            get { return _isnewvehicle; }
            set { _isnewvehicle = value; }
        }

        public string VechicleNo
        {
            get { return _vechicleno; }
            set { _vechicleno = value; }
        }

        public string EngineNo
        {
            get { return _engineno; }
            set { _engineno = value; }
        }

        public string ChassisNo
        {
            get { return _chassisno; }
            set { _chassisno = value; }
        }

        public string VehicleTransmission
        {
            get { return _vehicletransmission; }
            set { _vehicletransmission = value; }
        }

        public string VehiclePropellant
        {
            get { return _vehiclepropellant; }
            set { _vehiclepropellant = value; }
        }

        public float VehicleSumInsured
        {
            get { return _vehiclesuminsured; }
            set { _vehiclesuminsured = value; }
        }

        public float ClaimODAmount
        {
            get { return _claimodamount; }
            set { _claimodamount = value; }
        }

        public float ClaimTPPDAmount
        {
            get { return _claimtppdamount; }
            set { _claimtppdamount = value; }
        }

        public bool IsPolicyRDCOpted
        {
            get { return _ispolicyrdcopted; }
            set { _ispolicyrdcopted = value; }
        }

        public bool HasHirePurchase
        {
            get { return _hashirepurchase; }
            set { _hashirepurchase = value; }
        }

        public string HPCompanyName
        {
            get { return _hpcompanyname; }
            set { _hpcompanyname = value; }
        }
       
        public bool HasDriveWestMalaysia
        {
            get { return _hasdrivewestmalaysia; }
            set { _hasdrivewestmalaysia = value; }
        }

        public string HowOften
        {
            get { return _howoften; }
            set { _howoften = value; }
        }

        public bool Aircon
        {
            get { return _aircon; }
            set { _aircon = value; }
        }

        public bool Radio
        {
            get { return _radio; }
            set { _radio = value; }
        }

        public bool SportsRims
        {
            get { return _sportsrims; }
            set { _sportsrims = value; }
        }

        public bool SunRoof
        {
            get { return _sunroof; }
            set { _sunroof = value; }
        }

        public bool MoonRoof
        {
            get { return _moonroof; }
            set { _moonroof = value; }
        }

        public string OtherAccessories
        {
            get { return _otheraccessories; }
            set { _otheraccessories = value; }
        }

        public bool HasVechicleModified
        {
            get { return _hasVechiclemodified; }
            set { _hasVechiclemodified = value; }
        }

        public string VechicleModifyReason
        {
            get { return _vechiclemodifyreason; }
            set { _vechiclemodifyreason = value; }
        }

        public bool HasCOE
        {
            get { return _hascoe; }
            set { _hascoe = value; }
        }

        public bool CarRentalExten
        {
            get { return _carrentalexten; }
            set { _carrentalexten = value; }
        }

        public bool NCDProtectorExten
        {
            get { return _ncdprotectorexten; }
            set { _ncdprotectorexten = value; }
        }

        public bool DealerWorkShopExten
        {
            get { return _dealerworkshopexten; }
            set { _dealerworkshopexten = value; }
        }

        public bool SunRoofExten
        {
            get { return _sunroofexten; }
            set { _sunroofexten = value; }
        }
        
        public float SunRoofAmount
        {
            get { return _sunroofamount; }
            set { _sunroofamount = value; }
        }

        public bool MoonRoofExten
        {
            get { return _moonroofexten; }
            set { _moonroofexten = value; }
        }

        public float MoonRoofAmount
        {
            get { return _moonroofamount; }
            set { _moonroofamount = value; }
        }

        public string OtherExtension
        {
            get { return _otherextension; }
            set { _otherextension = value; }
        }

        public bool SocialUse
        {
            get { return _socialuse; }
            set { _socialuse = value; }
        }

        public bool HasPhysicalImpairmty
        {
            get { return _hasphysicalimpairmty; }
            set { _hasphysicalimpairmty = value; }
        }

        public string PhysicalImpairmtyReason
        {
            get { return _physicalImpairmtyreason; }
            set { _physicalImpairmtyreason = value; }
        }

        public bool HasAccidentInvolved
        {
            get { return _hasaccidentinvolved; }
            set { _hasaccidentinvolved = value; }
        }

        public string AccidentInvolvedReason
        {
            get { return _accidentinvolvedreason; }
            set { _accidentinvolvedreason = value; }
        }

        public bool HasTrafficConvicted
        {
            get { return _hastrafficconvicted; }
            set { _hastrafficconvicted = value; }
        }

        public string TrafficConvictedReason
        {
            get { return _trafficconvictedreason; }
            set { _trafficconvictedreason = value; }
        }

        public bool HasInsuranceTerminated
        {
            get { return _hasinsuranceterminated; }
            set { _hasinsuranceterminated = value; }
        }

        public string InsuranceTerminatedReason
        {
            get { return _Insuranceterminatedreason; }
            set { _Insuranceterminatedreason = value; }
        }

        public bool HasDemeritPoints
        {
            get { return _hasdemeritpoints; }
            set { _hasdemeritpoints = value; }
        }

        public bool HasPreInsurer
        {
            get { return _haspreinsurer; }
            set { _haspreinsurer = value; }
        }

        public string PreInsurerName
        {
            get { return _preinsurername; }
            set { _preinsurername = value; }
        }

        public string PreInsVechicleNo
        {
            get { return _preinsvechicleno; }
            set { _preinsvechicleno = value; }
        }

        public Int32 PreInsNCD
        {
            get { return _preinsncd; }
            set { _preinsncd = value; }
        }

        public string PreInsPolicyNo
        {
            get { return _preinsPolicyno; }
            set { _preinsPolicyno = value; }
        }

        public DateTime PreInsExpiryDate
        {
            get { return _preinsexpirydate; }
            set { _preinsexpirydate = value; }
        }

        public string PamentType
        {
            get { return _pamenttype; }
            set { _pamenttype = value; }
        }

        public string NameoftheCard
        {
            get { return _nameofthecard; }
            set { _nameofthecard = value; }
        }

        public string IssuingBankName
        {
            get { return _issuingbankname; }
            set { _issuingbankname = value; }
        }

        public string CreditCardNo
        {
            get { return _creditcardno; }
            set { _creditcardno = value; }
        }

        public string CardExpiryMonth
        {
            get { return _cardexpirymonth; }
            set { _cardexpirymonth = value; }
        }

        public string CardExpiryYear
        {
            get { return _cardexpiryyear; }
            set { _cardexpiryyear = value; }
        }

        public string CardType
        {
            get { return _cardtype; }
            set { _cardtype = value; }
        }

        public string QuoteRefNo
        {
            get { return _quoterefno; }
            set { _quoterefno = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public string RowGUID
        {
            get { return _rowguid; }
            set { _rowguid = value; }
        }

        public Int64 ViewedDetailId
        {
            get { return _vieweddetailid; }
            set { _vieweddetailid = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public Int64 CarResultId
        {
            get { return _carresultid; }
            set { _carresultid = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public void ClearFields()
        {
            _cecarmoredetailid = 0;
            _cecarid = 0;
            _providercompanyid = 0;
            _salutation = "";
            _name = "";
            _nricno = "";
            _nationality = "";
            _postalcode = "";
            _unitno = "";
            _homeno = "";
            _address = "";
            _mobileno = "";
            _homehoneno = "";
            _officephoneno = "";
            _faxno = "";
            _driveexpyear = 0;
            _driveexpmonth = 0;
            _drivinglicenceno = "";
            _drivingclass = "";
            _yearobtained = 0;
            _isnewvehicle = false;
            _vechicleno = "";
            _engineno = "";
            _chassisno = "";
            _vehicletransmission = "";
            _vehiclepropellant = "";
            _vehiclesuminsured = 0.0f;
            _claimodamount = 0.0f;
            _claimtppdamount = 0.0f;
            _ispolicyrdcopted = false;
            _hashirepurchase = false;
            _hpcompanyname = "";
            _hasdrivewestmalaysia = false;
            _howoften = "";
            _aircon = false;
            _radio = false;
            _sportsrims = false;
            _sunroof = false;
            _moonroof = false;
            _otheraccessories = "";
            _hasVechiclemodified = false;
            _vechiclemodifyreason = "";
            _hascoe = false;
            _carrentalexten = false;
            _ncdprotectorexten = false;
            _dealerworkshopexten = false;
            _sunroofexten = false;
            _sunroofamount = 0.0f;
            _moonroofexten = false;
            _moonroofamount = 0.0f;
            _otherextension = "";
            _socialuse = false;
            _hasphysicalimpairmty = false;
            _physicalImpairmtyreason = "";
            _hasaccidentinvolved = false;
            _accidentinvolvedreason = "";
            _hastrafficconvicted = false;
            _trafficconvictedreason = "";
            _hasinsuranceterminated = false;
            _Insuranceterminatedreason = "";
            _hasdemeritpoints = false;
            _haspreinsurer = false;
            _preinsurername = "";
            _preinsvechicleno = "";
            _preinsncd = 0;
            _preinsPolicyno = "";
            _preinsexpirydate =DateTime.Now;
            _pamenttype = "";
            _nameofthecard = "";
            _issuingbankname = "";
            _creditcardno = "";
            _cardexpirymonth = "";
            _cardexpiryyear = "";
            _cardtype = "";
            _quoterefno = "";

            //common field name
            _refceuserid = 0;
            _rowguid = "";
            _vieweddetailid = 0;
            _status = false;
            _carresultid = 0;
            _createddate = new DateTime();
            _modifieddate = new DateTime();
        }

    }
}